package cn.sunshine.ymcc.service;

import cn.sunshine.ymcc.domain.PayOrder;
import cn.sunshine.ymcc.dto.ApplyPayOrderDto;
import cn.sunshine.ymcc.dto.Order2PayParamDto;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr.Jiang
 * @since 2022-08-19
 */
public interface IPayOrderService extends IService<PayOrder> {
    // 消费消息后就保存支付单
    void savePayOrder(Order2PayParamDto order2PayParamDto);

    PayOrder checkPayOrder(String orderNo);
    // 调用支付
    String applyPayOrder(ApplyPayOrderDto applyPayOrderDto);
    // 支付超时取消支付单
    void cancelPayOrderByPayTimeOut(String orderNo);
}
